package ui.mainscreen;

import java.awt.Color;
import java.awt.Component;
import java.awt.Font;

import javax.swing.BoxLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class TitlePanel extends JPanel {

	public TitlePanel() {
		/* Создание заголовка главного окна */

		JLabel titleUp = new JLabel();
		JLabel titleDown = new JLabel();
		titleUp.setFont(new Font("Tahoma", 1, 30));
		titleUp.setForeground(new Color(30, 144, 255));
		titleUp.setText("ФРОНТИР");
		titleDown.setFont(new Font("Tahoma", 1, 20));
		titleDown.setForeground(new Color(30, 144, 255));
		titleDown.setText("У ПОСЛЕДНЕЙ ЧЕРТЫ");
		BoxLayout boxTitle = new BoxLayout(this, BoxLayout.Y_AXIS);
		setLayout(boxTitle);
		titleUp.setAlignmentX(Component.CENTER_ALIGNMENT);
		titleDown.setAlignmentX(Component.CENTER_ALIGNMENT);
		add(titleUp);
		add(titleDown);
	}

}
